package com.jrx.anytxn.customer.dto.customer;

import com.jrx.anytxn.common.constant.RegexConstant;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author chenj
 * @date 2022/11/26 10:58
 */
public class CustomerFirstLeverQueryReq implements Serializable {
    /**
     * 交易流水号
     */
    @NotBlank(message = "流水号不能为空")
    @Size(max=32, message = "交易流水号必须小于32位")
    @Pattern(regexp = RegexConstant.ALL_CHARSET_AND_NUMBER, message = "流水号只能是英文字母和数字组成")
    @ApiModelProperty(value="交易流水号",example="SN369",required=true)
    private String 	seqNo;

    /**
     * 租户id
     */
    @NotBlank(message = "租户id不能为空")
    @Size(max=4, message = "租户id必须小于4位")
    @ApiModelProperty(value="租户id",example="C692",required=true)
    private String 	tenantId;

    /**
     * 渠道号
     */
    @NotBlank(message = "客户api请求中核心客户号不能为空")
    @ApiModelProperty(value="核心客户号",example="5",required=true)
    @Size(max = 32, message = "核心客户号必须小于32位")
    private String 	ecifId;

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }


    public String getEcifId() {
        return ecifId;
    }

    public void setEcifId(String ecifId) {
        this.ecifId = ecifId;
    }
}
